package com.cetc.sdp.kmga.cs.common;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description:
 * @author： DengQiang
 * @date: 2018/3/30 16:21
 */
public class TableMeta implements Serializable {

    private int id;

    private String tableName;

    private int rowkeyType;

    private String topic;

    private String queue;

    private String logType;

    private int generateCreateTime;

    /**
     * 是否分表
     */
    private boolean split;

    /**
     * 表名自动添加后缀
     */
    private int autoAppendSuffix;

    private boolean repartition;

    private int numOfPartition;

    private long initial;

    private long current;

    private LocalDateTime lastUpdateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public int getRowkeyType() {
        return rowkeyType;
    }

    public void setRowkeyType(int rowkeyType) {
        this.rowkeyType = rowkeyType;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getQueue() {
        return queue;
    }

    public void setQueue(String queue) {
        this.queue = queue;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public int getGenerateCreateTime() {
        return generateCreateTime;
    }

    public void setGenerateCreateTime(int generateCreateTime) {
        this.generateCreateTime = generateCreateTime;
    }

    public boolean isSplit() {
        return split;
    }

    public void setSplit(boolean split) {
        this.split = split;
    }

    public int getAutoAppendSuffix() {
        return autoAppendSuffix;
    }

    public void setAutoAppendSuffix(int autoAppendSuffix) {
        this.autoAppendSuffix = autoAppendSuffix;
    }

    public boolean isRepartition() {
        return repartition;
    }

    public void setRepartition(boolean repartition) {
        this.repartition = repartition;
    }

    public int getNumOfPartition() {
        return numOfPartition;
    }

    public void setNumOfPartition(int numOfPartition) {
        this.numOfPartition = numOfPartition;
    }

    public long getInitial() {
        return initial;
    }

    public void setInitial(long initial) {
        this.initial = initial;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public LocalDateTime getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(LocalDateTime lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
}
